<script>
const switcher = 'xwy4'
let dataManUrl0
let bussinessManUrl0
let baseUserUrl0
let verifyUrl0
let tranEstimateUrl0
let tranProduct0
// /** *******现场
if (switcher === 'jifang432') {
  dataManUrl0 = 'http://10.16.50.175:8102'
  bussinessManUrl0 = 'http://10.16.50.175:8103'
  baseUserUrl0 = 'http://10.16.50.175:8888'
  verifyUrl0 = 'http://10.16.50.175:8888'
  tranEstimateUrl0 = 'http://10.16.50.172:8882'
  tranProduct0 = 'http://10.16.50.108:8090'
} else if (switcher === 'xwy1') {
  // 酒店ip
  dataManUrl0 = 'http://180.184.65.203:8081'
  bussinessManUrl0 = 'http://180.184.65.203:8081'
  baseUserUrl0 = 'http://192.168.43.138:8081'
  verifyUrl0 = 'http://192.168.43.138:8081'
  tranEstimateUrl0 = 'http://47.92.199.181:8882'
  tranProduct0 = 'http://10.16.50.108:8090'
} else if (switcher === 'xwy2') {
  // 手机热点模式ip外网认证中心
  dataManUrl0 = 'http://localhost:8082'
  bussinessManUrl0 = 'http://localhost:8082'
  baseUserUrl0 = 'http://180.184.65.203:8087'
  verifyUrl0 = 'http://180.184.65.203:8087'
  tranEstimateUrl0 = 'http://47.92.199.181:8882'
  tranProduct0 = 'http://10.16.50.108:8090'
} else if (switcher === 'xwy3') {
  // 手机热点模式ip，本地认证中心
  dataManUrl0 = 'http://localhost:8082'
  bussinessManUrl0 = 'http://localhost:8082'
  baseUserUrl0 = 'http://localhost:8081'
  verifyUrl0 = 'http://localhost:8081'
  tranEstimateUrl0 = 'http://47.92.199.181:8882'
  tranProduct0 = 'http://10.16.50.108:8090'
} else if (switcher === 'xwy4') {
  // 手机热点模式ip，本地认证中心
  dataManUrl0 = 'http://192.168.1.206:8082'
  bussinessManUrl0 = 'http://192.168.1.206:8082'
  baseUserUrl0 = 'http://192.168.1.206:8081'
  verifyUrl0 = 'http://192.168.1.206:8081'
  tranEstimateUrl0 = 'http://47.92.199.181:8882'
  tranProduct0 = 'http://10.16.50.108:8090'
} else if (switcher === 'hubin') {
  // 胡斌ip
  dataManUrl0 = 'http://localhost:8081'
  bussinessManUrl0 = 'http://localhost:8081'
  baseUserUrl0 = 'http://localhost:8087'
  verifyUrl0 = 'http://localhost:8087'
  tranEstimateUrl0 = 'http://47.92.199.181:8882'
  tranProduct0 = 'http://10.16.50.108:8090'
}
// ************************** */
const verifyUrl = verifyUrl0
const baseUserUrl = baseUserUrl0
const dataManUrl = dataManUrl0
const bussinessManUrl = bussinessManUrl0
const tranEstimateUrl = tranEstimateUrl0
const tranProduct = tranProduct0
const SYS_PERMISSION_MANAGE = 'S000'
const SYS_BUSINSESS_MANAGE = 'S001'
const SYS_DATA_MANAGE = 'S002'
const SYS_MONITOR_MANAGE = 'S003'
const SYS_SERVICE_MANAGE = 'S004'
const SYS_VIRTUAL_MANAGE = 'S005'
function isManager (syscode) {
  return localStorage.getItem('permissions').indexOf(syscode + '*') > -1
}
export default {
  SYS_PERMISSION_MANAGE,
  SYS_BUSINSESS_MANAGE,
  SYS_DATA_MANAGE,
  SYS_MONITOR_MANAGE,
  SYS_SERVICE_MANAGE,
  SYS_VIRTUAL_MANAGE,
  // baseUrl,
  verifyUrl,
  baseUserUrl,
  dataManUrl,
  bussinessManUrl,
  tranEstimateUrl,
  tranProduct,
  isManager
}
</script>
